;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-home7" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 128c0 0-263.936 227.84-411.424 351.232-8.672 7.84-15.232 19.296-15.232 32.768 0 23.584 19.072 42.656 42.656 42.656l85.344 0 0 298.656c0 23.584 19.072 42.656 42.656 42.656l128 0c23.584 0 42.656-19.104 42.656-42.656l0-170.656 170.656 0 0 170.656c0 23.552 19.072 42.656 42.656 42.656l128 0c23.584 0 42.656-19.072 42.656-42.656l0-298.656 85.344 0c23.584 0 42.656-19.072 42.656-42.656 0-13.472-6.56-24.928-16.352-32.768-146.464-123.392-410.336-351.232-410.336-351.232z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-gouwuche" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M1018.753024 530.93376c0 77.666304-77.078528 79.229952-77.078528 79.229952l-679.37792 0.704512 16.119808 79.85152 613.567488 0c22.0672 0 47.499264-12.084224 47.499264 60.099584 0 62.208-25.432064 57.55392-47.499264 57.55392L213.311488 808.373248c-22.146048 0-40.065024-17.92-40.065024-40.064 0-17.569792-102.508544-641.035264-102.508544-641.035264l-66.200576 0.196608c0-147.77856 111.194112-117.808128 111.194112-117.808128 82.555904 0 80.991232 79.581184 80.991232 79.581184l16.979968 81.107968 728.754176-1.096704c72.61696 0 76.68736 77.390848 76.68736 77.390848L1018.753024 530.93376 1018.753024 530.93376zM899.418112 330.141696c0-22.107136-17.92-40.065024-40.064-40.065024l-579.6864 0c-22.144 0-40.064 17.958912-40.064 40.065024l15.023104 120.194048c0 22.145024 17.918976 40.064 40.064 40.064L859.354112 490.399744c22.144 0 40.064-17.92 40.064-40.064L899.418112 330.141696 899.418112 330.141696zM336.08704 848.436224c44.837888 0 81.302528 33.964032 81.302528 78.959616 0 44.87168-36.46464 81.301504-81.302528 81.301504-44.99456 0-78.95552-36.429824-78.95552-81.301504C257.13152 882.400256 291.093504 848.436224 336.08704 848.436224L336.08704 848.436224zM779.224064 848.436224c44.992512 0 81.383424 35.254272 81.383424 80.130048 0 44.997632-36.389888 81.422336-81.383424 81.422336-44.916736 0-81.381376-36.42368-81.381376-81.422336C697.843712 883.690496 734.307328 848.436224 779.224064 848.436224L779.224064 848.436224z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-fenlei" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M196.277147 225.916333c0 12.674671-10.264182 22.950711-22.951652 22.950711L87.253731 248.867044C74.567285 248.867044 64.300033 238.58998 64.300033 225.916333l0-86.069261C64.300033 127.172401 74.567285 116.895337 87.253731 116.895337l86.071764 0c12.68747 0 22.951652 10.276041 22.951652 22.950711L196.277147 225.916333z"  ></path>' +
    '' +
    '<path d="M959.45027 225.916333c0 12.674671-10.265205 22.950711-22.951652 22.950711L311.040523 248.867044c-12.686447 0-22.952675-10.276041-22.952675-22.950711l0-86.069261c0-12.674671 10.266228-22.950711 22.952675-22.950711l625.458095 0c12.685423 0 22.951652 10.276041 22.951652 22.950711L959.45027 225.916333z"  ></path>' +
    '' +
    '<path d="M196.277147 532.893866c0 12.674671-10.264182 22.951735-22.951652 22.951735L87.253731 555.845601C74.567285 555.845601 64.300033 545.568537 64.300033 532.893866l0-86.069261c0-12.674671 10.266228-22.951735 22.952675-22.951735l86.071764 0c12.68747 0 22.951652 10.276041 22.951652 22.951735L196.276124 532.893866z"  ></path>' +
    '' +
    '<path d="M959.45027 532.893866c0 12.674671-10.265205 22.951735-22.951652 22.951735L311.040523 555.845601c-12.686447 0-22.952675-10.277064-22.952675-22.951735l0-86.069261c0-12.674671 10.266228-22.951735 22.952675-22.951735l625.458095 0c12.685423 0 22.951652 10.276041 22.951652 22.951735L959.45027 532.893866z"  ></path>' +
    '' +
    '<path d="M196.277147 839.871399c0 12.674671-10.264182 22.951735-22.951652 22.951735L87.253731 862.823134C74.567285 862.823134 64.300033 852.54607 64.300033 839.871399l0-86.068238c0-12.675694 10.266228-22.952758 22.952675-22.952758l86.071764 0c12.68747 0 22.951652 10.277064 22.951652 22.952758L196.276124 839.871399z"  ></path>' +
    '' +
    '<path d="M959.45027 839.871399c0 12.674671-10.265205 22.951735-22.951652 22.951735L311.040523 862.823134c-12.686447 0-22.952675-10.277064-22.952675-22.951735l0-86.068238c0-12.675694 10.266228-22.952758 22.952675-22.952758l625.458095 0c12.685423 0 22.951652 10.277064 22.951652 22.952758L959.45027 839.871399z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-wode" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M955.923532 922.936233c1.231037 4.084015 2.091638 8.329712 2.091638 12.81691 0 24.64019-19.951401 44.602847-44.570101 44.602847-24.615631 0-44.567032-19.962657-44.567032-44.602847 0-0.049119 0.013303-0.094144 0.013303-0.143263l-1.166569 0c-11.606339-186.693006-166.216649-334.626243-355.781052-334.626243-189.568497 0-344.178807 147.933237-355.785146 334.626243l-1.055029 0c0.002047 0.049119 0.01535 0.094144 0.01535 0.143263 0 24.64019-19.952424 44.602847-44.570101 44.602847-24.615631 0-44.567032-19.962657-44.567032-44.602847 0-4.226255 0.775666-8.234545 1.873674-12.110829C80.799234 754.241137 187.807387 611.205443 337.194742 547.482119c-69.481468-50.685379-114.818025-132.506896-114.818025-225.116107 0-153.925718 124.738979-278.723026 278.622742-278.723026 153.874553 0 278.620695 124.796284 278.620695 278.723026 0 89.328491-42.174542 168.638815-107.507526 219.645512C828.733735 602.420359 942.290023 748.498342 955.923532 922.936233zM690.305989 322.366012c0-104.572684-84.903715-189.338253-189.632965-189.338253-104.737436 0-189.637058 84.765569-189.637058 189.338253 0 104.563474 84.899622 189.336206 189.637058 189.336206C605.402273 511.702218 690.305989 426.929486 690.305989 322.366012z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)